package safari.model.free;

import java.sql.SQLException;
import java.util.List;

import safari.model.common.FreeListVO;
import safari.model.common.ListVO;
import safari.model.common.SearchVO;

public interface FreeBoardService {
	public void freeBoardRegister(FreeBoardVO fvo) throws SQLException;
	public void freeBoardUpdate(FreeBoardVO fbvo) throws SQLException;
	public FreeBoardVO freeBoardUpdateView(int no) throws SQLException;
	public void freeBoardDelete(int no) throws SQLException;
	public FreeListVO freeBoardShowContent(String boardNo, String commentNo) throws SQLException;
	public void freeBoardUpdateHits(int no)  throws SQLException;
	public ListVO freeBoardGetAllList(String no) throws SQLException;
	
	//reply 답글 메소드
	public void freeBoardReplyRegister(FreeBoardVO fvo)  throws SQLException;
	public FreeBoardVO freeBoardReplyView(String no) throws SQLException;
	
	//comment 덧글 메소드(ajax)처리
	public List<FreeBoardCommentVO> freeBoardCommentRegisterAndShowComment(FreeBoardCommentVO fbcVO)  throws SQLException;
	public void freeBoardCommentUpdate(FreeBoardCommentVO fbcVO) throws SQLException;
	public void freeBoardCommentDelete(int no)  throws SQLException;
	public FreeBoardCommentVO freeBoardCommentUpdateView(int no) throws SQLException;
	public List<FreeBoardCommentVO> freeBoardCommentGetAllList(String page) throws SQLException;
	
	
	//검색 메소드 SearchVO [ type , keyword ] 검색가능
	public ListVO freeBoardSearchKeyword(SearchVO svo)  throws SQLException;
	
}
